import '../css/index.css';
import getLang from './utils/getLang';

getLang().then((lang) => {
  console.log('当前语言环境：', lang);
});
window.HWH5.appInfo().then((data) => {
  console.log(data);
  /* 返回数据格式
  data = {
      versionCode:'18',
      versionName:'1.0.18',
      environment: 'PRODUCTION',
      appName:'WeLink',
      language: 'zh',
      fontSize: 17
  } */
});

window.HWH5.navTitle({ title: 'Hello World' });
window.HWH5.addEventListener({
  type: 'back',
  func: function () {
    console.log('监听返回事件');
    return true;
  }
}).catch((error) => {
  console.log('监听事件发生异常', error);
});
